Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dangling log_output in Service #12871

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

alexey-pelykh
Copy link
Contributor

The isinstance check was faulty and checked wrong type

Fixes #12870

Description

The #12637 change also introduced a bug by making an incorrect isinstance check.

Motivation and Context

It solves dangling I/O handle.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

The isinstance check was faulty and checked wrong type

Fixes #12870
@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (6765b15) 56.51% compared to head (58eac13) 56.51%.
Report is 1 commits behind head on trunk.

❗ Current head 58eac13 differs from pull request most recent head 61cd4a7. Consider uploading reports for the commit 61cd4a7 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #12871   +/-   ##
=======================================
  Coverage   56.51%   56.51%           
=======================================
  Files          86       86           
  Lines        5255     5255           
  Branches      187      187           
=======================================
  Hits         2970     2970           
  Misses       2098     2098           
  Partials      187      187           
Files Coverage Δ
py/selenium/webdriver/common/service.py 88.70% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@titusfortner titusfortner merged commit 9bf2950 into SeleniumHQ:trunk Oct 5, 2023
16 checks passed
@titusfortner
Copy link
Member

Thank you for the fix!

@alexey-pelykh alexey-pelykh deleted the issue/12870 branch October 5, 2023 14:00
aguspe pushed a commit to aguspe/selenium that referenced this pull request Oct 22, 2023
The isinstance check was faulty and checked wrong type

Fixes SeleniumHQ#12870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: logging to /dev/null remains dangling
3 participants